package com.httpclient;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class TestSwing extends JFrame {

    private JTextField jTextFieldName = new javax.swing.JTextField();

    private JTextField jTextPwd = new javax.swing.JTextField();

    private JTextField jTextVerifyCode = new javax.swing.JTextField();

    private JButton jButton;

    public TestSwing() {
        super();
        this.setSize(500, 600);
        this.getContentPane().setLayout(null);

        JLabel jLabelName = new JLabel("登陆名");
        jLabelName.setBounds(34, 50, 53, 18);
        this.add(jLabelName, null);
        jTextFieldName.setBounds(96, 50, 160, 20);
        this.add(jTextFieldName, null);

        JLabel jLabelPwd = new JLabel("密码");
        jLabelPwd.setBounds(34, 100, 53, 18);
        this.add(jLabelPwd, null);
        jTextPwd.setBounds(96, 100, 160, 20);
        this.add(jTextPwd, null);

        this.add(getJButton(), null);
        this.setTitle("挂号辅助");
    }

    private javax.swing.JButton getJButton() {
        if (jButton == null) {
            jButton = new javax.swing.JButton();
            jButton.setBounds(103, 300, 71, 27);
            jButton.setText("OK");
        }
        return jButton;
    }

    /**
     * @param args
     */
    public static void main(String[] args) {
        TestSwing w = new TestSwing();
        w.setVisible(true);

    }

}
